package com.example.medical_project.commons.utils;

import cn.dev33.satoken.stp.StpUtil;
import com.example.medical_project.commons.constant.Constants;
import com.example.medical_project.modules.system.domain.User;

public class UserUtils {

    public static User getLoginUser(){
        return (User) StpUtil.getSession().get(Constants.LOGIN_USER);
    }
}
